
Last chance! 50% off unlimited learning
Sale ends in
Contour plot of the normal distribution in
norm.contour(x, type = "alr", n = 100, appear = TRUE)
A matrix with the compositional data. It has to be a 3 column matrix.
This is either "alr" or "ilr", corresponding to the additive and the isometric log-ratio transformation respectively.
The number of grid points to consider over which the density is calculated.
Should the available data appear on the ternary plot (TRUE) or not (FALSE)?
A ternary diagram with the points (if appear = TRUE) and the bivariate normal contour lines.
The alr or the ilr transformation is applied to the compositional data at first. Then for a grid of points within the 2-dimensional simplex the bivariate normal density is calculated and the contours are plotted along with the points.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman \& Hall.
diri.contour, mixnorm.contour, bivt.contour, skewnorm.contour
# NOT RUN {
x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
norm.contour(x)
norm.contour(x, type = "ilr")
# }
Run the code above in your browser using DataLab